<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>vue插入数据</title>
    <style>
    .orange
    {
        color: orange;
    }
    </style>
</head>
<body>
    
    <div>
      
      <h1 style="text-align: center">{{content}}</h1> 
      <h2 v-text="isname"></h2>
      <p v-html="des" v-bind:class="classList"></p>
      
      <img style="width: 100px;height: 100px;" v-bind:src="image" >
   <hr>
   <a :href="baidu" target="_brank">百度小王子</a>
    </div>

    <script src="vue.js"></script>

    <script>
    new Vue({
        el:'div',
        data:{
            image:'http://pic4.nipic.com/20091117/3376018_110331702620_2.jpg',
            baidu:'https://www.baidu.com',
            classList:'orange',
            isname:'single dog',
            content:'2月14日 情人节 关我毛事',
            des:'<h2>这是一个美好的节日</h2>'
        }
    })
    </script>
</body>
</html>